// Package main is the grpc server of the application.
package main

import (
	"chazhou/app/user/srv/app"
	"log"
	"math/rand"
	"os"
	"runtime"
	"time"
)

func main() {
	rand.NewSource(time.Now().UnixMicro())
	if 0 == len(os.Getenv("GOMAXPROCS")) {
		runtime.GOMAXPROCS(runtime.NumCPU())
	}

	if err := app.Run(); err != nil {
		log.Printf("server exit %s", err.Error())
	}
}
